package cn.changein.framework.kernel.model.response;

import lombok.Data;

/**
 * <p>
 *     请求失败的返回
 * </p>
 *

 * @Date: 2020-10-27 11:33
 * @Copyright: companyName
 * @Version 1.0
 * @Since JDK1.8
 */
@Data
public class ErrorResponseData extends ResponseData {

    /**
     * 异常的具体类名称
     */
    private String exceptionClazz;

    public ErrorResponseData(String message) {
        super(false, ResponseData.DEFAULT_ERROR_CODE, message, null);
    }

    public ErrorResponseData(Integer code, String message) {
        super(false, code, message, null);
    }

    public ErrorResponseData(Integer code, String message, Object object) {
        super(false, code, message, object);
    }
}
